﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class CameraMgr
{
    private static Camera m_activeCamera;

    public static Camera ActiveCamera
    {
        get
        {
            return m_activeCamera;
        }
        set
        {
            m_activeTransform = value.transform;
            m_activeCamera = value;
        }
    }

    private static Transform m_activeTransform;

    public static Transform ActiveTransform
    {
        get
        {
            return m_activeTransform;
        }
    }

    public static bool IsActiveCamera(Camera camera)
    {
        return camera.Equals(m_activeCamera);
    }
}
